/*
 *
 *  ------------------------------------------------------------------
 *  Copyright © 2017 Hangzhou DtDream Technology Co.,Lt d. All rights reserved.
 *  ------------------------------------------------------------------
 *        Product:  EMR
 *    Module Name: NEZHA
 *   Date Created: 17-10-23 下午4:22
 *    Description:
 *  ------------------------------------------------------------------
 *  Modification History
 *  DATE            Name           Description
 *  ------------------------------------------------------------------
 *  2017-10-23      NEZHA EMR
 *  ------------------------------------------------------------------
 * /
 */

package org.xukai.remoting.sdk.web.monitor;

/**
 * Created by moriarty on 17-7-14.
 */
public enum ExecutionState {
    PENDDING, STARTED, COMPILED, FAILED, FINISHED;

    public static boolean isFinal(ExecutionState state) {
        return state == FAILED || state == FINISHED;
    }

    public static boolean isSucceeded(ExecutionState state) {
        return state == FINISHED;
    }

    public static boolean isFailed(ExecutionState state) {
        return state == FAILED;
    }
}
